<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
	<script type="text/javascript" src="../assets/vue.js"></script>
	<title>methods Option</title>
</head>
<body>
<h1>22_VueWithJquery</h1>
<hr>
<div id="app">
{{msg}}
</div>

<script type="text/javascript">
	var app=new Vue({
		el:'#app',
		data:{
			msg:'hell',
		},
		mounted:function(){
			//在Vue中使用jQuery
			$('#app').html('我是jQuery!');
		},
		methods:{
			add:function () {
				console.log('调用了构造器内部的方法');
			}
		}
	});

	app.add();
</script>
</body>
</html>